# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=watchdog
pkgver=5.16
pkgrel=1
pkgdesc="watchdog daemon"
url="https://sourceforge.net/projects/watchdog/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/watchdog/watchdog-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-pidfile=/run/watchdog.pid \
		--with-ka_pidfile=/run/wd_keepalive.pid \
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1c9c921570ec7ddc3e4ff88b2029f1c3865277e547fb8970575df4b61fdf1f06f443f49ad09f11c29d913ca7d6ab05c5b19ec049ac218a8bcebd20b1bf5f0bbd  watchdog-5.16.tar.gz
"
